package org.common;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * org.common
 *
 * @author WeiFan
 */
@Getter
@Component
@PropertySource("classpath:common.conf")
public class CommonConfig {
    @Value("${mongodb.host}")
    String mongoHost;
    @Value("${mongodb.user}")
    String mongoUser;
    @Value("${mongodb.password}")
    String mongoPassword;
    @Value("${mongodb.login.db}")
    String loginDbName;

    @Value("${redis.host}")
    String redisHost;
    @Value("${redis.password}")
    String redisPassword;

    @Value("${login.player_host}")
    String loginPlayerHost;
    @Value("${login.inner_host}")
    String loginInnerHost;

    @Value("${proto.type}")
    String protoType;

}
